package com.lwc.cfdns.controller.api;

import com.lwc.cfdns.constants.ConstantsUrl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * 测试控制器
 *
 * @author luwc
 * @title TestController
 * @description
 * @time 2023/6/19 16:12:35
 * @version: 1.0
 */
@RestController
@RequestMapping(ConstantsUrl.API + "/test")
public class TestController {
    /**
     * 测试
     *
     * @param
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/6/19 16:14:35
     */
    @GetMapping("/t")
    public Map<String, Object> t(@RequestParam(value = "a") String a, @RequestParam("c") String c) {
        Map<String, Object> map = new HashMap<>();
        map.put("a", a);
        map.put("c", c);
        return map;
    }
}
